<template>
  <view class="fun-flex-col page">
    <view class="fun-flex-col group_3">
      <text class="fun-self-start font text_3">Set a new password</text>
      <view class="fun-flex-row fun-items-center fun-self-stretch group_4">
        <text class="font_2 text_4">Your user name:</text>
        <text class="font_2 text_5 ml-9">Tonya01</text>
      </view>
      <view class="fun-flex-col fun-justify-start fun-items-start fun-self-stretch text-wrapper">
        <input class="font text_6 text_7"type="text" placeholder="Please enter your old password"/>
      </view>
      <view class="fun-flex-row fun-items-center fun-self-stretch group_5">
        <text class="text_8">Forgot your old password?</text>
        <text class="fun-ml-6 text_9">Retrieve password.</text>
      </view>
      <view class="fun-flex-col fun-self-stretch group_6">
        <view class="fun-flex-col fun-justify-start fun-items-start text-wrapper_2">
          <input class="font text_6" type="text" placeholder="Please enter a new password"/>
        </view>
		
        <view class="fun-mt-16 fun-flex-col fun-justify-start fun-items-start text-wrapper_2">
          <input class="font text_6 text_10" type="text" placeholder="Please enter the new password again."/>
        </view>
      </view>
    </view>
    <view class="fun-flex-col fun-justify-start fun-items-center text-wrapper_3">
      <text class="text_11" @click="confirm">Confirm</text>
    </view>
  </view>
</template>

<script>
  export default {
    components: {},
    props: {},
    data() {
      return {};
    },

    methods: {
		confirm(){
			uni.showToast({
				title: "密码修改成功",
				icon: "none",
				duration: 1000
			})
			setTimeout(function() {
				uni.reLaunch({
					url: '/pages/login/login'
				})
			}, 1000)
		}
	},
  };
</script>

<style scoped lang="scss">
  .ml-5 {
    margin-left: 10rpx;
  }
  .ml-9 {
    margin-left: 18rpx;
  }
  .page {
    padding: 36rpx 32rpx;
    background-color: #00033b;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    .group {
      padding-left: 36rpx;
      .text {
        color: #ffffff;
        font-size: 30rpx;
        font-family: SF Pro Text;
        font-weight: 600;
        line-height: 22.18rpx;
      }
      .image {
        width: 34rpx;
        height: 22rpx;
      }
      .image_2 {
        width: 30rpx;
        height: 22rpx;
      }
      .image_3 {
        width: 48rpx;
        height: 22.66rpx;
      }
    }
    .group_2 {
      margin-top: 48rpx;
      padding: 16rpx 0 4rpx;
      .image_4 {
        width: 48rpx;
        height: 48rpx;
      }
      .pos {
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
      }
      .text_2 {
        color: #ffffff;
        font-size: 32rpx;
        font-family: SF Pro Display;
        font-weight: 300;
        line-height: 28.92rpx;
      }
    }
    .group_3 {
      margin-top: 92rpx;
      .font {
        font-size: 28rpx;
        font-family: SF Pro Display;
        line-height: 24.44rpx;
        font-weight: 300;
        color: #ffffff;
      }
      .text_3 {
        font-weight: 700;
        line-height: 24.86rpx;
      }
      .group_4 {
        margin-top: 48rpx;
        .font_2 {
          font-size: 24rpx;
          font-family: SF Pro Display;
          font-weight: 300;
          color: #ffffff;
        }
        .text_4 {
          line-height: 17.1rpx;
        }
        .text_5 {
          line-height: 21.58rpx;
        }
      }
      .text-wrapper {
        margin-top: 28rpx;
        padding: 36rpx 0;
        background-color: #1b1d53;
        border-radius: 50rpx;
        .text_7 {
          line-height: 24.88rpx;
        }
      }
      .group_5 {
        margin-top: 22rpx;
        padding: 0 32rpx;
        .text_8 {
          color: #979797;
          font-size: 24rpx;
          font-family: SF Pro Display;
          font-weight: 300;
          line-height: 21.58rpx;
        }
        .text_9 {
          color: #175bae;
          font-size: 24rpx;
          font-family: Roboto;
          line-height: 22.88rpx;
        }
      }
      .group_6 {
        margin-top: 40rpx;
        .text-wrapper_2 {
          padding: 40rpx 0;
          background-color: #1b1d53;
          border-radius: 50rpx;
          .text_10 {
            line-height: 25rpx;
          }
        }
      }
      .text_6 {
        margin-left: 32rpx;
      }
    }
    .text-wrapper_3 {
      margin-top: 390rpx;
      padding: 32rpx 0;
      background-color: #5ceec4;
      border-radius: 44rpx;
      .text_11 {
        color: #000000;
        font-size: 32rpx;
        font-family: SF Pro Display;
        font-weight: 700;
        line-height: 24.08rpx;
      }
    }
  }
</style>